class Crawler::TrendJob < Crawler::Job
  def run
    log_info("Running searches")
    start_time = Time.now

    Search.run_saved
    
    finish_time = Time.now
    elapsed = (finish_time - start_time).to_f.round(1)
    log_info("Searches complete (#{elapsed} s).")
    
    @deadline = Time.now + 5.minutes
  end
end